{template '_header'}
<link rel="stylesheet" type="text/css" href="../addons/ewei_shopv2/template/account/default/style.css?v=2.0.0">
<style type="text/css">
    .account-top .logo img { border:2px solid {$set['wap']['color']};}
    .account-login-link { color:{$set['wap']['color']};  }
    .fui-cell-group .fui-cell-info .fui-input { color:{$set['wap']['color']}; }
    .btn.account-btn { border:1px solid {$set['wap']['color']};color:{$set['wap']['color']};}
    .fui-cell-group .fui-cell:before {
        border-top: 1px solid{$set['wap']['color']};
        color: {$set['wap']['color']};
    }
</style>

<div class="fui-page">
    {if is_h5app()}
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back"> </a>
        </div>
        <div class="title">用户登录</div>
        <div class="fui-header-right" data-nomenu="true"></div>
    </div>
    {/if}
    <div class="fui-content" >
        <div class="account-bg">
            <img src="{php echo empty($set['wap']['bg'])?'../addons/ewei_shopv2/template/account/default/bg.jpg':tomedia($set['wap']['bg'])}" />
        </div>

        <div class="account-top">
            <div class="logo">
                <img src="{php echo tomedia($set['shop']['logo'])}" />
            </div>
        </div>
        <div class="fui-cell-group fui-cell-group-o account-cell-group">

            <div class="fui-cell">
                <div class="fui-cell-info account-cell"><input type="tel" class="fui-input" name="mobile" id="mobile" placeholder="请输入您的手机号码" value="{php echo trim($_GPC['mobile'])}" maxlength="11" /></div>
            </div>
            <div class="fui-cell">
                <div class="fui-cell-info account-cell"><input type="password" class="fui-input"  name="pwd" id="pwd" placeholder="请输入您的登录密码" value=""/></div>
            </div>
            <div class="fui-cell">
                <div class="fui-cell-info ">
                    <div class="btn btn-default btn-default-o block account-btn" id="btnSubmit">立即登录</div>
                </div>
            </div>
            <div class="fui-cell-title" style="padding:0rem 1rem;;">
                    <a href="{$set['wap']['regurl']}" class="account-login-link external pull-right">立即注册</a>
                    <a href="{$set['wap']['forgeturl']}" class="account-login-link  external">密码找回 </a>
             </div>
        </div>

        {if is_h5app()}
            {if !empty($sns['wx']) || !empty($sns['qq'])}
                <div class="sns-login">
                    <div class="title">
                        <div class="text">第三方登录</div>
                    </div>
                    <div class="icons">
                        {if !empty($sns['wx'])}
                        <div class="item btn-sns" data-sns="wx" {if is_ios()}style="display: none;" id="threeWX"{/if}><i class="icon icon-wechat1"></i></div>
                        {/if}
                        {if !empty($sns['qq'])}
                        <div class="item btn-sns" data-sns="qq"><i class="icon icon-qq" style="font-size: 1.5rem"></i></div>
                        {/if}
                    </div>
                </div>
            {/if}
        {/if}

        <script language='javascript'>
            require(['biz/member/account'], function (modal) {
                modal.initLogin({backurl:'{$backurl}'});
            });
        </script>
    </div>
</div>

{if is_ios}
    {php $initWX=true}
{/if}
{template '_footer'}